<?php
$this->breadcrumbs = array(
	'收款账' => array(
		'index'
	),
	'管理',
);

$this->userActions = array(
	//array('label'=>'List AccountReceivable', 'url'=>array('index')),
	array(
		'label' => '新建收款账',
		'url' => array(
			'create'
		)
	),
);

?>

<h1>管理收款账</h1>
<?php $this
	->widget('zii.widgets.grid.CGridView',
		array(
			'id' => 'account-receivable-grid',
			'dataProvider' => $model->search(),
			'filter' => $model,
			'columns' => array(
				//'id',

				array(
					'name' => 'projectId',
					'type' => 'raw',
					'value' => '$data->project->name',
					'filter' => CHtml::listData(Project::getAll(), 'id', 'name')
				),
				'token',
				'receiveDate',
				'price:currency',
				'note',
				'createTime',
				/*'createUserId',
				'updateTime',
				'updateUserId',
				 */
				array(
					'class' => 'CButtonColumn',
				),
			),
		));
?>
